package cn.newtest.bi.collection.service.impl;

import java.util.List;

import net.risesoft.risebi.collection.dao.CatalogObjectTreeDao;
import net.risesoft.risebi.collection.model.StatisticalObjectTree;
import net.risesoft.risebi.collection.model.StatisticalObjectTreeNode;
import net.risesoft.risebi.collection.service.CatalogObjectTreeManager;

import org.appfuse.dao.Dao;
import org.appfuse.service.impl.BaseManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 
 * @author <a href="mailto: wangchui@risesoft.net">王锤</a>
 * @version $Revision$
 * 
 */
@Service(value = "catalogObjectTreeManager")
@Transactional(rollbackFor = { java.lang.Exception.class })
public class CatalogObjectTreeManagerImpl extends BaseManager implements
		CatalogObjectTreeManager {

	private CatalogObjectTreeDao catalogObjectTreeDao;

	public Dao getDao() {
		return getCatalogObjectTreeDao();
	}

	public CatalogObjectTreeDao getCatalogObjectTreeDao() {
		return catalogObjectTreeDao;
	}

	@Autowired
	public void setCatalogObjectTreeDao(
			CatalogObjectTreeDao catalogObjectTreeDao) {
		this.catalogObjectTreeDao = catalogObjectTreeDao;
	}

	public List<StatisticalObjectTree> getAllOrderByTabIndex() throws Exception {
		return catalogObjectTreeDao.getAllOrderByTabIndex();
	}

	public List<StatisticalObjectTreeNode> getAllNodeOrderByTabIndex()
			throws Exception {
		return catalogObjectTreeDao.getAllNodeOrderByTabIndex();
	}

}
